package com.pkk.penguin.frame.know.java.practice.stack.impl;


/**
 * @description: 栈容器实现
 * @author: peikunkun
 * @create: 2020-01-03 16:36
 **/
public interface StackInter<T> {

  /**
   * @Description: 压栈
   * @Param: element
   * @return: boolean
   * @Author: peikunkun
   * @Date: 2020/1/3 0003 下午 4:28
   */
  boolean push(T element);

  /**
   * @Description: 弹栈
   * @return: T
   * @Author: peikunkun
   * @Date: 2020/1/3 0003 下午 4:29
   */
  T pop();

  /**
   * @Description: 栈顶端
   * @return: T
   * @Author: peikunkun
   * @Date: 2020/1/3 0003 下午 4:29
   */
  T peek();


  /**
   * @Description: 栈指针是否为空
   * @Param:
   * @return: boolean
   * @Author: peikunkun
   * @Date: 2020/1/3 0003 下午 4:29
   */
  boolean isEmpty();

}
